import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.ww.aop.MathCalculator;
import org.ww.config.MainConfigOfAOP;

public class IOCTest_Aspects {
    @Test
    public void test01(){
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfigOfAOP.class);
        MathCalculator mathCalculator = applicationContext.getBean(MathCalculator.class);
        mathCalculator.div(1,0);

    }
}
